var cou = document.querySelector('.cou')
var countrys = cou.querySelector('.countrys')
var country = cou.querySelector('#country');
var culs = countrys.querySelector('ul');

var my = document.querySelector('.my');
var metb = my.querySelector('#metb');
var m = my.querySelector('.m')

var fr = document.querySelector('.fr');
var s = fr.querySelector('.s')

var sellC = document.querySelector('.sellC');
var carx = sellC.querySelector('.carx');

var ccs = document.querySelector('.ccs');
var kf = ccs.querySelector('.kf')

var Pnav = document.querySelector('.Pnav');
var n = Pnav.querySelector('.n')
// 国家选择悬浮
cou.addEventListener('mousemove',function() {
    countrys.style.display='block';
    cou.className='cou color_fff'
    cou.style.borderColor='#eeeeee';
})
cou.addEventListener('mouseout',function() {
    countrys.style.display='none';
    cou.className='cou'
    cou.style.borderColor='#f5f5f5';
})
for(var i = 0; i < culs.children.length; i++) {
    culs.children[i].addEventListener('click',function() {
        country.innerHTML='&nbsp;&nbsp;&nbsp;' +this.innerHTML;
        countrys.style.display='none';
        cou.className='cou'
    })
}
// 我的淘宝悬浮
my.addEventListener('mousemove',function() {
    m.style.display='block';
    my.className='my color_fff'
    my.style.borderColor='#eeeeee';
})
my.addEventListener('mouseout',function() {
    m.style.display='none';
    my.className='my'
    my.style.borderColor='#f5f5f5';
})

// 收藏夹悬浮
fr.addEventListener('mousemove',function() {
    s.style.display='block';
    fr.className='fr color_fff'
    fr.style.borderColor='#eeeeee';
})
fr.addEventListener('mouseout',function() {
    s.style.display='none';
    fr.className='fr'
    fr.style.borderColor='#f5f5f5';
})
// 千牛卖家中心悬浮
sellC.addEventListener('mousemove',function() {
    carx.style.display='block';
    sellC.className='sellC color_fff'
    sellC.style.borderColor='#eeeeee';
})
sellC.addEventListener('mouseout',function() {
    carx.style.display='none';
    sellC.className='sellC'
    sellC.style.borderColor='#f5f5f5';
})
// 联系客服悬浮
ccs.addEventListener('mousemove',function() {
    kf.style.display='block';
    ccs.className='ccs color_fff'
    ccs.style.borderColor='#eeeeee';
})
ccs.addEventListener('mouseout',function() {
    kf.style.display='none';
    ccs.className='ccs'
    ccs.style.borderColor='#f5f5f5';
})
// 网页导航悬浮
Pnav.addEventListener('mousemove',function() {
    n.style.display='block';
    Pnav.className='Pnav color_fff'
    Pnav.style.borderColor='#eeeeee';
})
Pnav.addEventListener('mouseout',function() {
    n.style.display='none';
    Pnav.className='Pnav'
    Pnav.style.borderColor='#f5f5f5';
})